package icu.zqyhdm.blog.constant;

/**
 * redis常量
 *
 * @author yezhiqiu
 * @date 2021/07/27
 */
public class RedisConst {

    /**
     * 验证码过期时间
     */
    public static final long CODE_EXPIRE_TIME = 15 * 60;

    /**
     * 验证码
     */
    public static final String USER_CODE_KEY = "blog:code:";

    /**
     * 文章浏览量
     */
    public static final String ARTICLE_VIEWS_COUNT = "blog_db:article:views_count";

    /**
     * 文章点赞量
     */
    public static final String ARTICLE_LIKE_COUNT = "blog_db:article:like_count";

    /**
     * 评论点赞量, key是blog:comment:like_count:atricleId
     */
    public static final String COMMENT_LIKE_COUNT = "blog_db:comment:like_count:";

    /**
     * 用户点赞文章
     */
    public static final String ARTICLE_USER_LIKE = "blog_db:user:article_like:";

    /**
     * 用户点赞评论
     */
    public static final String COMMENT_USER_LIKE = "blog_db:user:comment_like:";

    /**
     * 浏览文章集合
     */
    public static String ARTICLE_SET = "articleSet";
}
